<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="oastaglib" prefix="oas"%>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
	href="<c:url value="/resources/bootstrap/dist/css/bootstrap.min.css" /> ">
<script type="text/javascript"
	src="<c:url value="/resources/js/jquery/dist/jquery.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/resources/bootstrap/dist/js/bootstrap.min.js"/>"></script>
<meta charset="UTF-8">
<title>请假详情</title>
</head>
<body>
<oas:nav/>
<oas:content>
	<div class="leaveView">
		<h1>请假详情</h1>
		<div>
			申请人:<span class="leaveTime"><c:out
					value="${leave.applicant.fullName}" /></span>
		</div>
		<div class="leaveDescription">
			申请时间:
			<c:out value="${leave.applyDate}" />
		</div>
		<div class="leaveDescription">
			该员工所在部门:
			<c:out value="${leave.applicant.workcell.name}" />
		</div>
		<div class="leaveDescription">
			请假描述:
			<c:out value="${leave.type.description}" />
		</div>
		<div>
			审核人:
			<c:out value="${leave.handler.fullName}" />
		</div>
		<div>
			审核人所属部门:
			<c:out value="${leave.handler.workcell.name}" />
		</div>
		<div class="leaveDescription">
			目前状态:
			<c:out value="${leave.status}"></c:out>
		</div>
		<c:if test="${leave.status=='未审核'}">
			<div>
				<a
					href="<c:url value="/workcells/leave/checkTrue?id=${leave.id}" />">批准</a>
			</div>

			<div>
				<a
					href="<c:url value="/workcells/leave/checkFalse?id=${leave.id}" />">不予批准</a>
			</div>
		</c:if>

	</div>
</oas:content>
<oas:footer/>
</body>
</html>